import Modal from "@ui/RJMart/modal";
import "./style.scss";

export default function InfoModal(props){
    const { getRef, content, onConfrim,type,className } = props;

    return (
        <div className={`rj_l-cancel-modal ${className}`}>
            <Modal
                ref={v => getRef(v)}
                title="提示"
                content={content || ""}
                type={type? type:"confirm"}
                onConfirm={() => {
                    if (onConfrim) {
                        onConfrim();
                    }
                }}
                onCancel={() => {
                    console.log("Cancel");
                }}
            />
        </div>
    );
}
